#include "SetOwnClockMessage.h"

SetOwnClockMessage::SetOwnClockMessage(int source, int destination, int clock):Message(source, destination)
{
	m_clock = clock;
}

SetOwnClockMessage::~SetOwnClockMessage(void)
{
}

void SetOwnClockMessage::run(Node* n)
{
	n->setOwnClock(m_clock);
}
	
void SetOwnClockMessage::print()
{
	printf("Node%d's clock is now %d\n", m_source, m_clock);
}
